package streaming;

import simulation.Window;

/**
 * Node that acts as failed - does not request or forward packets
 */
public class Attacker1 extends Host {

	public Attacker1(int id) {
		super(id);
		periodicRequest = null;
		isAttacker = true;		
	}
	

	public void initializeWindows() {
		interestWindow = new Window(StreamingConfig.MCASTINTERESTWINDOWSIZE);
		availabilityWindow = new Window(StreamingConfig.MCASTWINDOWSIZE);
		this.update();
	}
	
	public void handleRequest(int seqNo, Host source) {
		return;
	}
	
	public void handleNotify(int seqNo, Host source) {
		// Start windows as soon as first notification is received
		if (interestWindow == null) 
			this.initializeWindows();
		return;
	}
	
}
